using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAL;
namespace BUS
{
    public class tbchitietgdkhBUS
    {
        static public string error = "";
        public static void Insert(tbchitiet_gdkhDTO ct)
        {
            tbchitietgdkhDAL tbchitietgdkhDAL = new tbchitietgdkhDAL();
            tbchitietgdkhDAL.Insert(ct);
        }
        public static void Update(tbchitiet_gdkhDTO ct)
        {
            tbchitietgdkhDAL tbchitietgdkhDAL = new tbchitietgdkhDAL();
            tbchitietgdkhDAL.Update(ct);
            error = tbchitietgdkhDAL.error;
        }
        public static void Delete(int iD)
        {
            tbchitietgdkhDAL tbchitietgdkhDAL = new tbchitietgdkhDAL();
            tbchitietgdkhDAL.Delete(iD);
        }
        tbchitietgdcollection GET(string Where, int PageIndex, int PageSize,
                                       string OrderBy, string OrderDirection,
                                       out int TotalRecords)
        {
            tbchitietgdkhDAL tbchitietgdkhDAL = new tbchitietgdkhDAL();
            return tbchitietgdkhDAL.GET(Where, PageIndex, PageSize,
                            OrderBy, OrderDirection, out TotalRecords);
        }
    }
}
